package com.eliza.demo

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import com.eliza.demo.activity.BuyActivity
import com.eliza.demo.activity.LoginActivity
import com.eliza.demo.activity.MenuNavActivity
import com.eliza.demo.activity.NavActivity
import com.eliza.demo.db.activity.ContactorActivity
import com.eliza.demo.qq.activity.QQActivity

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        findViewById<Button>(R.id.main_btn_nav).setOnClickListener {
            startActivity(Intent(this, NavActivity::class.java))
        }
        findViewById<Button>(R.id.main_btn_menu).setOnClickListener {
            startActivity(Intent(this, MenuNavActivity::class.java))
        }
        findViewById<Button>(R.id.main_btn_login).setOnClickListener {
            startActivity(Intent(this, LoginActivity::class.java))
        }
        findViewById<Button>(R.id.main_btn_buy).setOnClickListener {
            startActivity(Intent(this, BuyActivity::class.java))
        }
        findViewById<Button>(R.id.main_btn_ContactorActivity).setOnClickListener {
            startActivity(Intent(this, ContactorActivity::class.java))
        }
        findViewById<Button>(R.id.main_btn_QQActivity).setOnClickListener {
            startActivity(Intent(this, QQActivity::class.java))
        }
    }
}